home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Business Assistant
/
Business Assistant.iso
/
acctg
/
tonyray1
/
cc2.prg
< prev
next >
Wrap
Text File
|
1985-09-01
|
2KB
|
97 lines
CLEA
mchoice=' '
mname=space(06)
mclose=.t.
mdele=0
DO WHIL MCLOSE=.T.
mchoice=' '
@05,05 say 'enter client number or'
@06,05 say ' (cr) to exit ' get mname pict '!!!!!!'
READ
mname=trim(mname)
IF len(MNAME)=0 .OR. MNAME=SPACE(06)
mclose=.f.
exit
ENDI
FIND &mname
DO CASE
CASE EOF()
@15,23 SAY CHR(7)+'no client with that number - try again'
xx=1
DO WHIL xx<35
xx=xx+1
ENDD
mname=space(20)
@15,23
LOOP
OTHE
@10,05 say ' client - '+clientname
@11,05 say ' reference - '+reference
@12,05 say 'file number - '+file_nmbr
@15,01 say ' is this the case to close? (Y) or (N)' get mchoice pict '!'ì
READ
IF MCHOICE<>'Y'
SET color to w*/r
@ 21,15 SAY CHR(7)+'case NOT closed because you did'
@ 22,15 say 'not select (Y) - hit any key'
SET color to 6/1,7/4,6
SET cons off
WAIT
SET cons on
mname=space(06)
@07,00 clear
ELSE
MFILE_NMBR=FILE_NMBR
SELE SERVICE
FIND '&MFILE_NMBR'
DO WHIL FILE_NMBR='&MFILE_NMBR' .AND. .NOT. EOF()
DELE
SKIP
ENDD
SELE CURRENT
SET INDE TO CURRNMBR,CURRNAME
FIND &MNAME
DELE
MDELE=mdele+1
SET color to w*/r
@21,15 say str(mdele)+' case(s) closed'
xx=1
DO WHIL XX<35
xx=xx+1
ENDD
SET color to 6/1,7/4,6
mname=space(6)
@07,00 clear
ENDI
ENDC
ENDD
IF mdele>=1
CLEA
SET COLOR TO W*/R
@01,00 SAY 'closing cases - please standby'
? 'number of cases we are closing is'+str(mdele)
SET color to 6/1,7/4,6
SET CONS OFF
COPY TO TEMP FOR DELE()
SELE CLOSED
APPE FROM TEMP
sele current
PACK
DELE FILE TEMP.DBF
SELE SERVICE
PACK
SELE CURRENT
ELSE
SET CONS ON
SET color to w*/r
@01,01 say 'no cases closed - hit any key'
SET color to 6/1,7/4,6
SET cons off
WAIT
SET CONS ON
ENDI
SET cons on
curr='014'
RETU